package com.loren.demo08.example01;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.config.ServiceLocatorFactoryBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OAuthPatternConfig {

    @Bean
    public FactoryBean<Object> oauthPatternFactory() {
        ServiceLocatorFactoryBean serviceLocatorFactoryBean = new ServiceLocatorFactoryBean();
        serviceLocatorFactoryBean.setServiceLocatorInterface(OAuthPatternFactory.class);
        return serviceLocatorFactoryBean;
    }
}
